package com.example.excelimporter.service;

import com.example.excelimporter.model.ImportResult;
import com.example.excelimporter.model.TemplateConfig;
import java.io.IOException;
import java.io.InputStream;
import org.springframework.web.multipart.MultipartFile;

public interface ExcelImportService {
    ImportResult importExcel(MultipartFile file, String templateId) throws IOException;

    /**
     * Import data from an Excel file using the specified template configuration
     * @param templateConfig The template configuration to use
     * @param excelStream The Excel file input stream
     */
    void importExcel(TemplateConfig templateConfig, InputStream excelStream);
}
